<?
// detail data
include("config.php");
include("function.php");

$nik	= $HTTP_GET_VARS['nik'];

$sql	= "SELECT *, CONVERT(CHAR(12), tgl_lahir, 103) tanggal FROM karyawan WHERE nik='$nik' ";
$result	= mssql_query($sql,$conn);
$rows	= mssql_fetch_array($result);

?>
<title></title>
<link rel="stylesheet" type="text/css" href="../style/style.css" />
<table width="100%">
 <tr>
  <td colspan="2"><b>DATA DETAIL KARYAWAN</b><br />
  <hr noshade="noshade" size="-2" color="#CFCFCF" />
  </td>
 </tr>
 <tr>
  <td></td>
 </tr>
 <tr>
  <td>NIK:</td>
  <td><?=$rows[NIK]?></td>
 </tr>
 <tr>
  <td>Nama:</td>
  <td><?=$rows[Nama]?></td>
 </tr>
 <tr>
  <td>Tempat, Tanggal Lahir:</td>
  <td><?=$rows[TempatLahir]?>,<?=$rows[tanggal]?></td>
 </tr>
 <tr>
  <td>Jenis Kelamin:</td>
  <td><?=$rows[JKel]?></td>
 </tr>
 <tr>
  <td>Status:</td>
  <td><?=$rows[Status]?></td>
 </tr>
 <tr>
  <td>Agama:</td>
  <td><?=$rows[Agama]?></td>
 </tr>
 <tr>
  <td>Alamat:</td>
  <td><?=$rows[Alamat]?></td>
 </tr>
 <tr>
  <td>Telepon:</td>
  <td><?=$rows[NoTelepon]?></td>
 </tr> 
 <tr>
  <td>Kota:</td>
  <td><?=$rows[Kota]?></td>
 </tr>
 <tr>
  <td>Kode Pos:</td>
  <td><?=$rows[KodePos]?></td>
 </tr>
 <tr>
  <td>Propinsi:</td>
  <td><?=$rows[Propinsi]?></td>
 </tr>
 <tr>
  <td colspan="2" align="right">
  <hr noshade="noshade" size="-2" color="#CFCFCF" />
 [ <a href="javascript:history.back()">kembali</a> | cetak ]
  </td>
 </tr>
</table>